// 试题审核
<template>
  <div class="check-questions">
    <el-form ref="checkForm" label-width="100px" class="demo-ruleForm">
      <el-radio-group v-model="radio">
        <el-radio v-model="radio" label="1">通过</el-radio>
        <el-radio v-model="radio" label="2">拒绝</el-radio>
      </el-radio-group>
      <el-input
        type="textarea"
        :rows="2"
        placeholder="请输入审核内容"
        v-model="textarea"
      >
      </el-input>
    </el-form>
    <div slot="footer" class="dialog-footer ">
      <el-button @click="$emit('close')">取 消</el-button>
      <el-button type="primary" @click="onCheck">确 认</el-button>
    </div>
  </div>
</template>

<script>
export default {
  name: "CheckQuestions",

  data() {
    return {
      checkForm: false, //审核弹出框
      textarea: "",
      radio: "1"
    };
  },

  methods: {
    onCheck() {
      if (this.textarea.trim().length <= 0)
        return this.$message.warning("请输入审核内容");
      console.log(this.textarea, this.radio);
    }
  }
};
</script>

<style scoped>
.el-dialog__body {
  padding: 30px 20px;
}

.el-radio {
  height: 32px;
  margin: 10px 10px;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 50px;
}
</style>
